﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MiniFox.Components
{
    /// <summary>
    /// 
    /// </summary>
    public class ComponentProvider
    {
        string _name;
        string _typeName;
        Type _type;
        internal ComponentProvider(string name, string typeFullName) : this(name, Type.GetType(typeFullName))
        {
        }
        internal ComponentProvider(string name, Type type)
        {
            _name = name;
            _type = type;
            _typeName = type.AssemblyQualifiedName;
        }
        /// <summary>
        /// 
        /// </summary>
        public string Name
        {
            get
            {
                return _name;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public Type Type
        {
            get
            {
                return _type;
            }
        }
    }
}
